﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace orderCreater
{
    public class City
    {
        public string cityId { get; set; }
        private string _cityName;
        public string cityName
        {
            get { return _cityName; }

            set 
            {
                _cityName = value.Replace("市", ""); 
            }
        }
        public List<Area> areaList { get; set; }
    }
    public class Area
    {
        public string areaId { get; set; }
        public string areaName { get; set; }

    }
    public static class AddressRang
    {
        //private static List<City> sendRang;
        public static List<City> SendRang{ get; set;}
    }
    public class AreaRang
    {
        public List<Area> SendRang { get; set; }
        public string getSendRangStr()
        {
            string str = "";
            for (int i = 0; i < this.SendRang.Count; i++)
            {
                str += this.SendRang[i].areaId;
                if (i != this.SendRang.Count - 1)
                {
                    str += ",";
                }
            }
            return str;
        }
    }
}
